home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
program
/
kh_gdi.zip
/
APXPRINT.H
< prev
next >
Wrap
C/C++ Source or Header
|
1996-05-27
|
1KB
|
49 lines
#if !defined(__apxprint_h) // Sentry use file only if it's not already included.
#define __apxprint_h
/* Project slang
Copyright ⌐ 1995. All Rights Reserved.
SUBSYSTEM: slang.exe Application
FILE: APXPrint.H
AUTHOR: Stepan S.Vartanov
OVERVIEW
========
Class definition for APXPrintOut (TPrintOut).
*/
#include <owl\owlpch.h>
#pragma hdrstop
class APXPrintOut : public TPrintout {
public:
APXPrintOut (TPrinter *printer, const char far *title, TWindow* window, bool scale = true) : TPrintout(title)
{ Printer = printer; Window = window; Scale = scale; MapMode = MM_ANISOTROPIC; }
void GetDialogInfo (int& minPage, int& maxPage, int& selFromPage, int& selToPage);
void BeginPrinting ();
void BeginPage (TRect &clientR);
void PrintPage (int page, TRect& rect, unsigned flags);
void EndPage ();
void SetBanding (bool b) { Banding = b; }
bool HasPage (int pageNumber);
protected:
TWindow *Window;
bool Scale;
TPrinter *Printer;
int MapMode;
int PrevMode;
TSize OldVExt, OldWExt;
TRect OrgR;
};
#endif // __apxprint_h sentry.